<HTML><HEAD><TITLE>open_receiver(+SendPos, +SendStruct, +ReceivePos, +ReceiveStruct)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(notify_ports)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>open_receiver(+SendPos, +SendStruct, +ReceivePos, +ReceiveStruct)</H1>
Create a receiver for a given notification sender
<DL>
<DT><EM>SendPos</EM></DT>
<DD>positive integer, the send port's field number in SendStruct
</DD>
<DT><EM>SendStruct</EM></DT>
<DD>a structure whose SendPos-th field is a send port
</DD>
<DT><EM>ReceivePos</EM></DT>
<DD>positive integer, the send port's field number in ReceiveStruct
</DD>
<DT><EM>ReceiveStruct</EM></DT>
<DD>a structure with free field ReceivePos
</DD>
</DL>
<H2>Description</H2>

    SendPos and SendStruct identify a send port.  This predicate
    creates a receive port listening to messages sent via the
    specified send port.  The new receive port will receive all
    messages that are sent via the send port after the receiver has
    been opened.  Messages that were sent before the receiver has been
    opened will not be received by this receiver.
    <P>
    The receiver will be installed in field ReceivePos of the structure
    ReceiveStruct.
    
<H2>See Also</H2>
<A HREF="../../lib/notify_ports/open_receiver_init-6.html">open_receiver_init / 6</A>
</BODY></HTML>
